package com.example.mapper;

import com.example.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


public interface ProductDao {

    Product queryById(Integer productid);
    int decreaseStock(@Param("productId") Integer productId, @Param("quantity") Integer quantity);


    int repiyStock(@Param("productId") Integer productId, @Param("quantity") Integer quantity);


}
